<script setup lang="ts">
import { ref } from 'vue'
import my_SonCom_defineProps from './components/my_SonCom_defineProps.vue'

const fName = ref('小白')
const fAge = ref(10)
const fMale = ref(true)
</script>

<template>
  <div>
    <h2>父组件</h2>
    <!-- 父->子数据传递 -->
    <!-- 第二步：在父组件中传递数据 -->
    <my_SonCom_defineProps :name="fName" :age="fAge" :male="fMale"></my_SonCom_defineProps>
    <!-- 测试默认值  -->
    <my_SonCom_defineProps></my_SonCom_defineProps>
  </div>
</template>

<style scoped></style>
